<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<s:if test="#session.lsdep==null||#session.lswf==null">
	<c:redirect url="doinit_Emp.action"></c:redirect>
</s:if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>员工添加</title>
<style>
	table{
		font-size:12.5px
	}
</style>
</head>

<body>
<div style="height:500px;overflow-y:scroll;">
	<form action="save_Emp.action" method="post" enctype="multipart/form-data" name="form1" id="form1">
	  <table width="450" border="1" align="center" cellpadding="1" cellspacing="1" >
	    <tr>
	      <td colspan="3" align="center" bgcolor="#FFFF99">员工添加</td>
	    </tr>
	    <tr>
	      <td width="50">姓名:</td>
	      <td width="277"><input type="text" name="emp.ename"/></td>
	      <td width="105" rowspan="7" align="center" valign="middle"><img src="uppic/default.jpg" width="104" height="190" /></td>
	    </tr>
	    <tr>
	      <td>性别:</td>
	      <td><input type="radio" name="emp.sex" value="男" checked="checked"/>男<input type="radio" name="emp.sex" value="女"/>女</td>
	    </tr>
	    <tr>
	      <td>地址:</td>
	      <td><input type="text" name="emp.address"/></td>
	    </tr>
	    <tr>
	      <td>生日:</td>
	      <td><input type="date" name="emp.sdate"  value="1990-01-01"/></td>
	    </tr>
	    <tr>
	      <td>部门:</td>
	      <td>
		      <s:select name="emp.dep.depid" list="#session.lsdep" listKey="depid" listValue="depname"/>
	      </td>
	    </tr>
	    <tr>
	      <td>照片:</td>
	      <td><input type="file" name="emp.pic"/></td>
	    </tr>
	    <tr>
	      <td>薪资:</td>
	      <td><input type="text" name="emp.emoney" value="2000"/></td>
	    </tr>
	    <tr>
	      <td>福利:</td>
	      <td colspan="2">
	      	<c:forEach items="${sessionScope.lswf }" var="wf">
		      	<input type="checkbox" name="emp.wids" value="${wf.wid}"/>${wf.wname}
	      	</c:forEach>
	      	</td>
	    </tr>
	    <tr>
	      <td colspan="3" align="center" bgcolor="#FFFF99"><input type="submit" value="确定"/>&nbsp;<input type="reset" value="重置"/></td>
	    </tr>
	  </table>
	</form>
</div>
</body>
</html>